package com.heaton.videocar.core

import android.app.Activity
import android.app.Application
import android.os.Bundle
import com.heaton.baselib.utils.GlobalStatusBarUtil
import com.heaton.videocar.R
import com.heaton.videocar.getColor
import com.heaton.videocar.setTimeout

class ActivityHookCallback: Application.ActivityLifecycleCallbacks {
    override fun onActivityPaused(activity: Activity) {

    }

    override fun onActivityStarted(activity: Activity) {

    }

    override fun onActivityDestroyed(activity: Activity) {

    }

    override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {

    }

    override fun onActivityStopped(activity: Activity) {

    }

    override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?) {
        /*setTimeout(duration = 100){
            GlobalStatusBarUtil.setUpStatusBar(activity, getColor(R.color.white),true)
        }*/
    }

    override fun onActivityResumed(activity: Activity) {

    }
}